package com.feiwo.nonego.rpc.common.constants;

/**
 * @author feiwo 2025-08-03
 */
public interface CommonConstants {

    String PROTOCOL_FILE = "file";

    String PROTOCOL_JAR = "jar";

    String CLASS_FILE_SUFFIX = ".class";

    /**
     * 协议魔数
     */
    short MAGIC_NUMBER = (short) 0xCA;

    /**
     * 头部信息总长度 32字节
     */
    int HEADER_TOTAL_LEN = 32;

    /**
     * JDK序列化方式
     */
    String SERIALIZATION_JDK = "jdk";

    /**
     * 服务负载均衡 - 随机
     */
    String SERVICE_LOAD_BALANCER_RANDOM = "random";
}
